﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq.Mapping;

namespace VideoPlay.Services.Models
{
    public partial class List
    {
        public int id { get; set; }
        public string youtubeId { get; set; }
        //public string title { get; set; }
        //public string image { get; set; }
        //public string url { get; set; }
        public TimeSpan duration { get; set; }
        public DateTime createDate { get; set; }
        public int orderShow { get; set; }
    }

    public class Videos
    {
        public List List { get; set; }
    }

    [Table(Name = "Favorites")]
    public partial class List
    {
        [Column(IsPrimaryKey = true, DbType = "Int NOT NULL Identity", CanBeNull = false,IsDbGenerated=true, AutoSync = AutoSync.OnInsert)]
        public int key
        {
            get;
            set;
        }

        [Column(DbType = "NVARCHAR(100) NULL", CanBeNull = true)]
        public string title { get; set; }
        [Column(DbType = "NVARCHAR(255) NULL", CanBeNull = true)]
        public string image { get; set; }
        [Column(DbType = "NVARCHAR(8)", CanBeNull = true)]
        public string lcDuration { get; set; }
        [Column(DbType = "NVARCHAR(255) NULL", CanBeNull = true)]
        public string url { get; set; }

        [Column(DbType = "Int NULL", CanBeNull = true)]
        public int lcLocalId
        {
            get;
            set;
        }

        [Column(DbType = "NVARCHAR(20) NULL", CanBeNull = true)]
        public string lcYoutubeId
        {
            get;
            set;
        }
    }
}
